﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExplorerPlus.AmazonApi;
using ExplorerPlus.AmazonApi.AmazonWebService;

namespace ExplorerPlus.UnitTest
{
    class AmazonApiTest
    {
        public void RunTest()
        {
            AmazonClient client = new AmazonClient();
            ItemSearchResponse response = client.Search("Music", "u2");

            foreach (var item in response.Items[0].Item)
            {
                Console.WriteLine(item.ItemAttributes.Title);
                ItemLookupResponse details = client.FindItemByASIN(item.ASIN);
                Console.WriteLine(details.Items[0].Item[0].ASIN);
            }
        }
    }
}
